<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "kd_group".
 *
 * @property integer $g_id
 * @property string $created_by
 * @property string $add_shijian
 * @property string $update_people
 * @property string $update_time
 * @property string $class_name
 */
class Group extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'kd_group';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['created_by', 'add_shijian', 'class_name'], 'required'],
            [['add_shijian', 'update_time'], 'safe'],
            [['created_by', 'class_name'], 'string', 'max' => 20],
            [['update_people'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'g_id' => '小组id',
            'created_by' => '创建人',
            'add_shijian' => '添加时间',
            'update_people' => '修改人',
            'update_time' => '修改时间',
            'class_name' => '所属班级名称',
        ];
    }
}
